package sgc.struc;

public class MovStock_p {

	int company;
	int mov_nro;
	int doc_pos;
	int material;
	double cant;
	double pr_unit;
	double pr_total;

	public int getCompany() {
		return company;
	}

	public void setCompany(int company) {
		this.company = company;
	}

	public int getMov_nro() {
		return mov_nro;
	}

	public void setMov_nro(int mov_nro) {
		this.mov_nro = mov_nro;
	}

	public int getDoc_pos() {
		return doc_pos;
	}

	public void setDoc_pos(int doc_pos) {
		this.doc_pos = doc_pos;
	}

	public int getMaterial() {
		return material;
	}

	public void setMaterial(int material) {
		this.material = material;
	}

	public double getCant() {
		return cant;
	}

	public void setCant(double cant) {
		this.cant = cant;
	}

	public double getPr_unit() {
		return pr_unit;
	}

	public void setPr_unit(double pr_unit) {
		this.pr_unit = pr_unit;
	}

	public double getPr_total() {
		return pr_total;
	}

	public void setPr_total(double pr_total) {
		this.pr_total = pr_total;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		long temp;
		temp = Double.doubleToLongBits(cant);
		result = prime * result + (int) (temp ^ (temp >>> 32));
		result = prime * result + company;
		result = prime * result + doc_pos;
		result = prime * result + material;
		result = prime * result + mov_nro;
		temp = Double.doubleToLongBits(pr_total);
		result = prime * result + (int) (temp ^ (temp >>> 32));
		temp = Double.doubleToLongBits(pr_unit);
		result = prime * result + (int) (temp ^ (temp >>> 32));
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		MovStock_p other = (MovStock_p) obj;
		if (Double.doubleToLongBits(cant) != Double
				.doubleToLongBits(other.cant))
			return false;
		if (company != other.company)
			return false;
		if (doc_pos != other.doc_pos)
			return false;
		if (material != other.material)
			return false;
		if (mov_nro != other.mov_nro)
			return false;
		if (Double.doubleToLongBits(pr_total) != Double
				.doubleToLongBits(other.pr_total))
			return false;
		if (Double.doubleToLongBits(pr_unit) != Double
				.doubleToLongBits(other.pr_unit))
			return false;
		return true;
	}

	@Override
	public String toString() {
		return "MovStock_p [company=" + company + ", mov_nro=" + mov_nro
				+ ", doc_pos=" + doc_pos + ", material=" + material + ", cant="
				+ cant + ", pr_unit=" + pr_unit + ", pr_total=" + pr_total
				+ "]";
	}

}
